#ifndef __PUSEN_SHOOT_HEADER__
#define __PUSEN_SHOOT_HEADER__

typedef int (*shooter_callback)(int event_id,char *detail);
class pusen_shooter
{
private:
    int m_video_fd;
    int m_bmp_fd;
    shooter_callback m_cb;
    int m_width;
    int m_height;
    int m_byte_per_pixel;
public:
    pusen_shooter();
    int set_resolution(int width,int height,int byte_per_pixel);
    int shoot(char *filename);
    int register_cb(shooter_callback cb);
    ~pusen_shooter();
};
#endif
